<!DOCTYPE HTML>
<%@page contentType="text/html; charset=UTF-8" language="java" %>
<% String path = request.getContextPath(); %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <script type="text/javascript" src="/static/email/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="/static/email/js/jquery-3.4.1.min.js"></script>
    <style>
        .m-container-small {
            max-width: 60px !important;
            margin: auto !important;
        }

        .m-padded-tb-massive {
            padding-top: 5px !important;
            padding-bottom: 5px !important;
        }
    </style>
    <script>
        var paths = "${pageContext.request.contextPath}";
        $(function () {
            $("#getcode").click(function () {
                var email = $("#email").val();
                if (email == "") {
                    alert("请填写邮箱！");
                    return;
                }

                $.ajax({
                    url: paths + "/zhuang/sendEmail",
                    data: {email: email},
                    type: "post",
                    success: function (mes) {
                        if (mes == "false") {
                            alert("发送失败");
                        }
                        if (mes == "failure") {
                            alert("目标邮箱不存在，请检查你的邮箱是否正确");
                        }
                        if (mes == "success") {
                            $(".code").css("display", "block");
                            alert("发送成功！");
                        }
                    }
                });
            });
        });
    </script>
    <script>

    </script>

    <script type="text/javascript">
        /*var countdown=60;
        function settime(val) {
            if (countdown == 0) {
                val.removeAttribute("disabled");
                val.value="免费获取验证码";
                countdown = 60;
            } else {
                //val.setAttribute("disabled", true);
                val.value="重新发送(" + countdown + ")";
                countdown--;
            }
            setTimeout(function() {
                settime(val)
            },1000)
        }*/

        /*var countdown=5;
        function settime(val) {
            if (countdown == 0) {
                val.removeAttribute("disabled");
                val.value="免费获取验证码";
                countdown = 5;
            } else {
                val.setAttribute("disabled", true);
                val.value="重新发送(" + countdown + ")";
                countdown--;
            }
            setTimeout(function() {
                settime(val)
            },1000)
        }*/




        var countdown=10;
        function settime(val) {
            if (countdown == 0) {
                val.removeAttribute("disabled");
                val.value="免费获取验证码";
                countdown = 10;
                if(countdown==10){
                    return;
                }
            } else {
                val.setAttribute("disabled", true);
                val.value="重新发送(" + countdown + ")";
                countdown--;
            }

            setTimeout(function() {
                settime(val)},1000)
        }
    </script>



    <script id="allmobilize" charset="utf-8" src="static/web/js/allmobilize.min.js"></script>
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="alternate" media="handheld"  />
    <!-- end 云适配 -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>登录-拉勾网-最专业的互联网招聘平台</title>
    <meta property="qc:admins" content="23635710066417756375" />
    <meta content="拉勾网是3W旗下的互联网领域垂直招聘网站,互联网职业机会尽在拉勾网" name="description">
    <meta content="拉勾,拉勾网,拉勾招聘,拉钩, 拉钩网 ,互联网招聘,拉勾互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 拉勾官网, 拉勾百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招" name="keywords">

    <meta name="baidu-site-verification" content="QIQ6KC1oZ6" />

    <!-- <div class="web_root"  style="display:none">h</div> -->
    <script type="text/javascript">
        var ctx = "h";
        console.log(1);
    </script>
    <link rel="Shortcut Icon" href="h/images/favicon.ico">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/web/css/style.css"/>

    <script src="${pageContext.request.contextPath}/static/web/js/jquery.1.10.1.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="${pageContext.request.contextPath}/static/web/js/jquery.lib.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/web/js/core.min.js"></script>


    <script type="text/javascript">
        var youdao_conv_id = 271546;
    </script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/web/js/conv.js"></script>
</head>

<body id="login_bg">
<div class="login_wrapper">
    <div class="login_header">
        <a href="h/"><img src="${pageContext.request.contextPath}/static/web/images/logo_white.png" width="285" height="62" alt="拉勾招聘" /></a>
        <div id="cloud_s"><img src="${pageContext.request.contextPath}/static/web/images/cloud_s.png" width="81" height="52" alt="cloud" /></div>
        <div id="cloud_m"><img src="${pageContext.request.contextPath}/static/web/images/cloud_m.png" width="136" height="95"  alt="cloud" /></div>
    </div>

    <input type="hidden" id="resubmitToken" value="9b207beb1e014a93bc852b7ba450db27" />
    <div class="login_box">

        <form id="loginForm" action="<%=path%>/zhuang/registe" method="post">

            <c:if test="${param.msg eq 'g'}">
                <div>验证码已过期！</div>
            </c:if>
            <c:if test="${param.msg eq 'can'}">
                <div>验证码不正确！</div>
            </c:if>
            <c:if test="${param.msg eq 'kong'}">
                <div>邮箱不存在 请重新输入！</div>
            </c:if>
            <input type="text" id="email" name="email" value="" tabindex="1" placeholder="请输入登录邮箱地址" />

            <input type="text" id="password" name="identify" tabindex="2" id="identify" placeholder="验证码" />

            <div class="field">
                <div class="ui left icon input">
                    <i class="mail icon"></i>
                   <input type="button"  id="getcode" class="ui grey label" value="获取验证码" onclick="settime(this)">
                   <%--<input type="button" id="btnGetVerifyCode" value="免费获取验证码" onclick="settime(this)"/>--%>

                   <%--<input type="button" id="btn" value="免费获取验证码" onclick="settime(this)" />--%>

                </div>
            </div>



            <span class="error" style="display:none;" id="beError"></span>
            <input type="submit" id="submitLogin" value="找 &nbsp; &nbsp; 回" />
            <%--<a style="color:#fff;" href="index.html" class="submitLogin" title="登 &nbsp; &nbsp; 录"/>登 &nbsp; &nbsp; 录</a>--%>


            <input type="hidden" id="callback" name="callback" value=""/>
            <input type="hidden" id="authType" name="authType" value=""/>
            <input type="hidden" id="signature" name="signature" value=""/>
            <input type="hidden" id="timestamp" name="timestamp" value=""/>
        </form>
        <div class="login_right">
            <div>还没有拉勾帐号</div>
            <a href="${pageContext.request.contextPath}/zhuang/register" class="registor_now">立即注册</a>
            <div class="login_others">使用以下账号直接登录</div>
            <a  href="h/ologin/auth/sina.html"  target="_blank" class="icon_wb" title="使用新浪微博帐号登录"></a>
            <a  href="h/ologin/auth/qq.html"  class="icon_qq" target="_blank" title="使用腾讯QQ帐号登录" ></a>
        </div>
    </div>
    <div class="login_box_btm"></div>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-3.5.1.min.js"></script>
<script type="text/javascript">



    $(document).ready(function(e) {
        $('.register_radio li input').click(function(e){
            $(this).parent('li').addClass('current').append('<em></em>').siblings().removeClass('current').find('em').remove();
        });

        $('#email').focus(function(){
            $('#beError').hide();
        });
    });

</script>
</body>
</html>
